package com.xbjtech.model.beans;

import lombok.Data;

@Data
public class Result {
	
	private boolean success;
	private String msg;
	
	public Result() {}
	
	public Result(boolean success, String msg) {
		this.success = success;
		this.msg = msg;
	}
	
	public static Result success() {
		return new Result(true, "操作成功");
	}
	
	public static Result fail() {
		return new Result(false, "操作失败");
	}

}
